import request from "@/utils/request";

// 查询极客小程序ai换发充值记录列表
export function listAiRechargeRecords(query) {
  return request({
    url: "/system/aiRechargeRecords/list",
    method: "get",
    params: query,
  });
}

// 查询极客小程序ai换发充值记录详细
export function getAiRechargeRecords(id) {
  return request({
    url: "/system/aiRechargeRecords/" + id,
    method: "get",
  });
}

// 新增极客小程序ai换发充值记录
export function addAiRechargeRecords(data) {
  return request({
    url: "/system/aiRechargeRecords",
    method: "post",
    data: data,
  });
}

// 修改极客小程序ai换发充值记录
export function updateAiRechargeRecords(data) {
  return request({
    url: "/system/aiRechargeRecords",
    method: "put",
    data: data,
  });
}

// 删除极客小程序ai换发充值记录
export function delAiRechargeRecords(id) {
  return request({
    url: "/system/aiRechargeRecords/" + id,
    method: "delete",
  });
}

// 查询用户补发诉求分组数据
export function queryHairstyleDemandsGroupDataApi(query) {
  return request({
    url: "/business/aiHairstyleDemands/queryHairstyleDemandsGroupData",
    method: "get",
    params: query,
  });
}

//  获取素材统计
export function matterListApi(data) {
  console.log(data);
  return request({
    url: `/business/matterManage/matterList`,
    method: "get",
    params: data,
  });
}
